<?php
$_install_sql = "
CREATE TABLE IF NOT EXISTS `ims_kuyuan_hb_coupon` (
    `id` INT ( 10 ) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '卡券',
    `uniacid` SMALLINT ( 5 ) UNSIGNED NOT NULL,
    `uid` INT ( 10 ) UNSIGNED NOT NULL COMMENT '用户id',
    `name` VARCHAR ( 30 ) NOT NULL COMMENT '卡券名字',
    `address` VARCHAR ( 255 ) NOT NULL COMMENT '卡券核销地址',
    `cover` INT ( 10 ) UNSIGNED DEFAULT NULL COMMENT '卡券封面',
    `type` CHAR ( 2 ) NOT NULL COMMENT '卡券类型',
    `type_value` VARCHAR ( 255 ) DEFAULT NULL COMMENT '卡券面值{face:''100'',value:''10''}',
    `time_type` TINYINT ( 1 ) UNSIGNED NOT NULL DEFAULT '1' COMMENT '卡券时间限制类型(1=永久有效，2=过期时间，3=领券后几天后过期)',
    `time` INT ( 10 ) UNSIGNED NOT NULL COMMENT '时间，过期时间或者有效天数',
    `detail` text NOT NULL COMMENT '卡券核销规则说明',
    `status` TINYINT ( 1 ) UNSIGNED NOT NULL COMMENT '卡券状态（1=正常，2=审核，3=审核未通过，9=删除）',
    PRIMARY KEY ( `id` ),
KEY `uid` ( `uid` ) USING BTREE 
) ENGINE = MyISAM DEFAULT CHARSET = utf8;
    
CREATE TABLE IF NOT EXISTS `ims_kuyuan_hb_deposit` (
	`id` INT ( 10 ) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '提现列表',
	`uniacid` SMALLINT ( 5 ) UNSIGNED NOT NULL,
	`order_id` CHAR ( 15 ) NOT NULL COMMENT '提现订单id',
	`uid` INT ( 10 ) UNSIGNED NOT NULL COMMENT '用户id',
	`money` DECIMAL ( 10, 2 ) UNSIGNED NOT NULL COMMENT '提现金额',
	`status` TINYINT ( 1 ) UNSIGNED NOT NULL DEFAULT '0' COMMENT '提现状态（0=提现中，1=提现成功，2=拒绝提现，9=删除）',
	`time` INT ( 10 ) UNSIGNED NOT NULL COMMENT '提现申请时间',
PRIMARY KEY ( `id` ) 
) ENGINE = INNODB DEFAULT CHARSET = utf8;
    
CREATE TABLE IF NOT EXISTS `ims_kuyuan_hb_link` (
	`id` INT ( 10 ) UNSIGNED NOT NULL AUTO_INCREMENT,
	`uniacid` SMALLINT ( 5 ) UNSIGNED NOT NULL,
	`uid` INT ( 10 ) UNSIGNED NOT NULL,
	`name` CHAR ( 8 ) NOT NULL COMMENT '链接名称',
	`link` VARCHAR ( 255 ) NOT NULL COMMENT '链接地址',
	`status` TINYINT ( 1 ) UNSIGNED NOT NULL DEFAULT '1' COMMENT '状态1=正常，9=删除',
	PRIMARY KEY ( `id` ),
KEY `uid` ( `uid` ) USING BTREE 
) ENGINE = MyISAM DEFAULT CHARSET = utf8;
    
CREATE TABLE IF NOT EXISTS `ims_kuyuan_hb_mch_order` (
	`id` INT ( 10 ) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '微信商户订单',
	`uniacid` SMALLINT ( 5 ) UNSIGNED NOT NULL,
	`uid` INT ( 10 ) UNSIGNED NOT NULL,
	`order_id` CHAR ( 15 ) NOT NULL COMMENT '商户订单id',
	`money` DECIMAL ( 10, 2 ) UNSIGNED NOT NULL COMMENT '订单金额',
	`source` VARCHAR ( 5 ) NOT NULL DEFAULT 'red' COMMENT '支付源(red=发红包)',
	`source_id` INT ( 10 ) UNSIGNED NOT NULL COMMENT '支付源id',
	`status` TINYINT ( 1 ) UNSIGNED NOT NULL DEFAULT '1' COMMENT '订单状态（1=未支付，2=支付成功，6=未支付，支付失败，8=订单异常，9=删除）',
	`time` INT ( 10 ) UNSIGNED NOT NULL COMMENT '支付下单时间',
PRIMARY KEY ( `id` ) 
) ENGINE = INNODB DEFAULT CHARSET = utf8;
    
CREATE TABLE IF NOT EXISTS `ims_kuyuan_hb_mch_refund` (
	`id` INT ( 10 ) UNSIGNED NOT NULL AUTO_INCREMENT,
	`uniacid` SMALLINT ( 5 ) UNSIGNED NOT NULL COMMENT '公众号id',
	`uid` INT ( 10 ) UNSIGNED NOT NULL,
	`order_id` CHAR ( 15 ) NOT NULL COMMENT '退款订单id',
	`pay_order_id` CHAR ( 15 ) NOT NULL COMMENT '支付订单号',
	`money` DECIMAL ( 10, 2 ) NOT NULL COMMENT '退款金额',
	`time` INT ( 10 ) UNSIGNED NOT NULL COMMENT '退款时间',
	`status` TINYINT ( 1 ) UNSIGNED NOT NULL DEFAULT '0' COMMENT '退款状态状态（0=处理中，1=退款成功，2=退款失败）',
PRIMARY KEY ( `id` ) 
) ENGINE = INNODB DEFAULT CHARSET = utf8;
    
CREATE TABLE IF NOT EXISTS `ims_kuyuan_hb_media` (
	`id` INT ( 10 ) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '素材库',
	`uniacid` SMALLINT ( 5 ) UNSIGNED NOT NULL,
	`uid` INT ( 10 ) UNSIGNED NOT NULL COMMENT '用户id',
	`type` CHAR ( 5 ) NOT NULL COMMENT '素材类型(image图片，video视频)',
	`source` VARCHAR ( 255 ) NOT NULL COMMENT '服务器相对位置',
	`thumb` VARCHAR ( 255 ) NOT NULL COMMENT '封面（视频封面||图片小图）',
	`filename` VARCHAR ( 100 ) NOT NULL COMMENT '文件名称',
	`time` INT ( 10 ) UNSIGNED NOT NULL COMMENT '上传时间',
	`size` INT ( 10 ) UNSIGNED NOT NULL COMMENT '文件大小',
	`status` TINYINT ( 1 ) UNSIGNED NOT NULL COMMENT '状态（1=正常，2=转码中，3=审核，4=转码失败）',
	PRIMARY KEY ( `id` ),
KEY `uid` ( `uid` ) USING BTREE 
) ENGINE = MyISAM DEFAULT CHARSET = utf8;
    
CREATE TABLE IF NOT EXISTS `ims_kuyuan_hb_member` (
	`id` INT ( 10 ) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '会员列表',
	`uniacid` SMALLINT ( 5 ) UNSIGNED NOT NULL COMMENT '公众号id',
	`uid` INT ( 10 ) UNSIGNED NOT NULL COMMENT '用户id',
	`balance` DECIMAL ( 10, 2 ) UNSIGNED NOT NULL DEFAULT '0.00' COMMENT '余额',
	`hint_more` TINYINT ( 1 ) UNSIGNED NOT NULL DEFAULT '1' COMMENT '进入模块是否提示上拉加载更多红包',
	`register_time` INT ( 10 ) UNSIGNED NOT NULL COMMENT '注册时间',
	PRIMARY KEY ( `id` ),
KEY `uid` ( `uid` ) USING BTREE 
) ENGINE = INNODB DEFAULT CHARSET = utf8;

CREATE TABLE IF NOT EXISTS `ims_kuyuan_hb_member_coupon` (
	`id` INT ( 10 ) UNSIGNED NOT NULL AUTO_INCREMENT,
	`uniacid` SMALLINT ( 5 ) UNSIGNED NOT NULL COMMENT '用户卡券',
	`uid` INT ( 10 ) UNSIGNED NOT NULL COMMENT '用户id',
	`red_id` INT ( 10 ) UNSIGNED NOT NULL COMMENT '红包id',
	`coupon_id` INT ( 10 ) UNSIGNED NOT NULL COMMENT '卡券id',
	`indate` INT ( 10 ) UNSIGNED NOT NULL DEFAULT '1' COMMENT '有效期（1=永久有效，2=时间戳有效时间至）',
	`time` INT ( 10 ) UNSIGNED NOT NULL COMMENT '卡券获取时间',
	`status` TINYINT ( 1 ) UNSIGNED NOT NULL DEFAULT '1' COMMENT '卡券状态(1=等待核销使用，2=已使用，9=删除)',
	PRIMARY KEY ( `id` ),
KEY `uid_red_id` ( `uid`, `coupon_id` ) USING BTREE 
) ENGINE = INNODB DEFAULT CHARSET = utf8;

CREATE TABLE IF NOT EXISTS `ims_kuyuan_hb_read_notice` (
	`id` INT ( 10 ) UNSIGNED NOT NULL AUTO_INCREMENT,
	`uniacid` SMALLINT ( 5 ) UNSIGNED NOT NULL,
	`uid` INT ( 10 ) UNSIGNED NOT NULL,
	`time` INT ( 10 ) UNSIGNED NOT NULL COMMENT '公告修改时间，用来判断用户是否已读',
PRIMARY KEY ( `id` ) 
) ENGINE = INNODB DEFAULT CHARSET = utf8;

CREATE TABLE IF NOT EXISTS `ims_kuyuan_hb_red` (
	`id` INT ( 10 ) UNSIGNED NOT NULL AUTO_INCREMENT,
	`uniacid` SMALLINT ( 5 ) UNSIGNED NOT NULL COMMENT '公众号id',
	`uid` INT ( 10 ) UNSIGNED NOT NULL COMMENT '用户id',
	`red_type` VARCHAR ( 10 ) NOT NULL COMMENT '红包媒体类型(default=默认红包，image=图片红包，video=视频红包)',
	`money` DECIMAL ( 10, 2 ) UNSIGNED NOT NULL COMMENT '红包金额',
	`pay` DECIMAL ( 10, 2 ) UNSIGNED NOT NULL COMMENT '红包创建支付金额',
	`charge` DECIMAL ( 10, 2 ) UNSIGNED NOT NULL DEFAULT '0.00' COMMENT '手续费',
	`pay_type` TINYINT ( 1 ) UNSIGNED NOT NULL COMMENT '发红包支付方式(0=未支付成功，1=余额支付，2=微信支付)',
	`type` TINYINT ( 1 ) UNSIGNED NOT NULL COMMENT '红包金额类型(1=普通红包，2=手气红包)',
	`send_coupon` TINYINT ( 1 ) UNSIGNED NOT NULL COMMENT '红包内是否装入卡券（0=不设置卡券，1=设置卡券）',
	`coupon` INT ( 10 ) UNSIGNED NOT NULL COMMENT '装入的卡券id',
	`red_form` TINYINT ( 1 ) UNSIGNED NOT NULL DEFAULT '0' COMMENT '是否开启红包表单(0=不开启，1=开启)',
	`red_form_id` INT ( 10 ) UNSIGNED NOT NULL DEFAULT '0' COMMENT '红包表单id',
	`number` INT ( 10 ) UNSIGNED NOT NULL COMMENT '红包数量',
	`numbered` INT ( 10 ) UNSIGNED NOT NULL COMMENT '已发红包数量',
	`title` CHAR ( 10 ) NOT NULL COMMENT '红包标题',
	`media` VARCHAR ( 50 ) NOT NULL COMMENT '素材id集合',
	`question` TINYINT ( 1 ) UNSIGNED NOT NULL DEFAULT '0' COMMENT '是否开启答题红包（0=不开启，1=选择题，2=问答题）',
	`answer` text COMMENT '问答题答案（json字符串）',
	`award` TINYINT ( 1 ) UNSIGNED NOT NULL COMMENT '是否开启分享助力红包',
	`time_type` TINYINT ( 1 ) UNSIGNED NOT NULL COMMENT '红包时间限制1=永久有效，2=时间限制',
	`start_time` INT ( 10 ) UNSIGNED NOT NULL DEFAULT '0' COMMENT '红包结束时间',
	`end_time` INT ( 10 ) UNSIGNED NOT NULL DEFAULT '0' COMMENT '红包结束时间',
	`area_type` TINYINT ( 1 ) UNSIGNED NOT NULL DEFAULT '0' COMMENT '是否开启红包地区限制(0=不开启，1=省级限制，2=市级限制，3=区级限制)',
	`area` VARCHAR ( 255 ) DEFAULT NULL COMMENT '限制地区',
	`link` INT ( 10 ) UNSIGNED NOT NULL DEFAULT '0' COMMENT '推广链接id(0=为开启，其他=推广链接id)',
	`create_time` INT ( 10 ) UNSIGNED NOT NULL COMMENT '红包创建时间',
	`status` TINYINT ( 1 ) UNSIGNED NOT NULL DEFAULT '1' COMMENT '红包状态（1=等待支付发红包，2=正常发布中，4=停止发红包，6=发红包未支付或者支付失败，8=发红包时支付异常，9=删除）',
PRIMARY KEY ( `id` ) 
) ENGINE = INNODB DEFAULT CHARSET = utf8;

CREATE TABLE IF NOT EXISTS `ims_kuyuan_hb_red_access` (
	`id` INT ( 10 ) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '可发红包人员列表',
	`uniacid` SMALLINT ( 5 ) UNSIGNED NOT NULL,
	`uid` INT ( 10 ) UNSIGNED NOT NULL COMMENT '用户id',
	`status` TINYINT ( 1 ) UNSIGNED NOT NULL DEFAULT '1' COMMENT '状态：1=审核中，2=正常，9=删除',
	`time` INT ( 10 ) UNSIGNED NOT NULL COMMENT '申请时间',
PRIMARY KEY ( `id` ) 
) ENGINE = MyISAM DEFAULT CHARSET = utf8;

CREATE TABLE IF NOT EXISTS `ims_kuyuan_hb_red_record` (
	`id` INT ( 10 ) UNSIGNED NOT NULL AUTO_INCREMENT,
	`uniacid` SMALLINT ( 5 ) UNSIGNED NOT NULL,
	`uid` INT ( 10 ) UNSIGNED NOT NULL COMMENT '用户id',
	`red_id` INT ( 10 ) UNSIGNED NOT NULL COMMENT '红包id',
	`money` DECIMAL ( 10, 2 ) UNSIGNED NOT NULL COMMENT '红包金额',
	`time` INT ( 10 ) UNSIGNED NOT NULL COMMENT '时间',
	`pid` INT ( 10 ) UNSIGNED NOT NULL DEFAULT '0' COMMENT '记录父级id(0=父级，其他=父级id)',
	`to_go` TINYINT ( 1 ) UNSIGNED NOT NULL DEFAULT '1' COMMENT '红包金额存入目标（1=余额，2=微信钱包）',
	PRIMARY KEY ( `id` ),
KEY `uid_red_id` ( `uid`, `red_id` ) USING BTREE 
) ENGINE = INNODB DEFAULT CHARSET = utf8;

CREATE TABLE IF NOT EXISTS `ims_kuyuan_hb_setting` (
	`uniacid` SMALLINT ( 5 ) UNSIGNED NOT NULL,
	`app_name` CHAR ( 8 ) NOT NULL DEFAULT '有趣红包' COMMENT '应用名称',
	`share_ratio` DECIMAL ( 5, 2 ) UNSIGNED DEFAULT '1.00' COMMENT '助力分享红包分成',
	`low_red_money` DOUBLE ( 10, 2 ) UNSIGNED NOT NULL DEFAULT '0.00' COMMENT '发红包最低总额',
	`open_send` TINYINT ( 1 ) UNSIGNED NOT NULL DEFAULT '0' COMMENT '是否对外开放发红包功能',
	`open_attention` TINYINT ( 1 ) UNSIGNED NOT NULL DEFAULT '0' COMMENT '是否开启关注公众号功能',
	`hint_attention` TINYINT ( 1 ) UNSIGNED NOT NULL COMMENT '发红包是否提示关注公众号',
	`map_key` CHAR ( 32 ) DEFAULT NULL COMMENT '高德地图Key',
	`sensitive_word` text COMMENT '敏感词',
	`notice` VARCHAR ( 255 ) DEFAULT NULL COMMENT '系统公告',
	`notice_time` INT ( 10 ) UNSIGNED NOT NULL DEFAULT '1' COMMENT '系统公告修改时间',
	`coupon_check` TINYINT ( 1 ) UNSIGNED NOT NULL DEFAULT '1' COMMENT '卡券是否需要审核(0=否，1=需要审核)',
	`kuyuan_defend` TINYINT ( 1 ) UNSIGNED NOT NULL COMMENT '是否开启酷源防封',
PRIMARY KEY ( `uniacid` ) 
) ENGINE = MyISAM DEFAULT CHARSET = utf8;

CREATE TABLE IF NOT EXISTS `ims_kuyuan_hb_setting_finance` (
	`uniacid` SMALLINT ( 5 ) UNSIGNED NOT NULL,
	`use_balance` TINYINT ( 1 ) UNSIGNED NOT NULL DEFAULT '1' COMMENT '模块独立余额1，微擎通用余额2',
	`balance_send` TINYINT ( 1 ) UNSIGNED NOT NULL DEFAULT '0' COMMENT '余额是否可发红包（1=可以，0=不可以）',
	`low_deposit` DECIMAL ( 10, 2 ) UNSIGNED NOT NULL DEFAULT '0.00' COMMENT '最低可提现的金额',
	`deposit_check` DECIMAL ( 10, 2 ) UNSIGNED NOT NULL DEFAULT '0.00' COMMENT '提现金额大于大少需要审核',
	`remark` VARCHAR ( 20 ) DEFAULT NULL COMMENT '提现成功微信备注信息',
PRIMARY KEY ( `uniacid` ) 
) ENGINE = MyISAM DEFAULT CHARSET = utf8;

CREATE TABLE IF NOT EXISTS `ims_kuyuan_hb_setting_gain` (
	`uniacid` SMALLINT ( 5 ) UNSIGNED NOT NULL,
	`default_red_ratio` DECIMAL ( 5, 2 ) UNSIGNED NOT NULL DEFAULT '0.00' COMMENT '默认红包手续费百分比',
	`image_red_ratio` DECIMAL ( 5, 2 ) UNSIGNED NOT NULL DEFAULT '0.00' COMMENT '图片红包手续费百分比',
	`video_red_ratio` DECIMAL ( 5, 2 ) UNSIGNED NOT NULL DEFAULT '0.00' COMMENT '视频红包手续费百分比',
PRIMARY KEY ( `uniacid` ) 
) ENGINE = MyISAM DEFAULT CHARSET = utf8;

CREATE TABLE IF NOT EXISTS `ims_kuyuan_hb_setting_media` (
	`uniacid` SMALLINT ( 5 ) UNSIGNED NOT NULL,
	`default_size` SMALLINT ( 4 ) UNSIGNED NOT NULL DEFAULT '1024' COMMENT '用户素材库默认内存大小',
	`is_check` TINYINT ( 1 ) UNSIGNED NOT NULL DEFAULT '1' COMMENT '用户上传素材是否审核',
	`duration` SMALLINT ( 5 ) UNSIGNED NOT NULL DEFAULT '30' COMMENT '视频限制的时长',
	`transcoding` TINYINT ( 1 ) UNSIGNED NOT NULL DEFAULT '0' COMMENT '视频是否转码',
PRIMARY KEY ( `uniacid` ) 
) ENGINE = MyISAM DEFAULT CHARSET = utf8;

CREATE TABLE IF NOT EXISTS `ims_kuyuan_hb_share` (
	`id` CHAR ( 8 ) NOT NULL COMMENT '分享id',
	`red_id` INT ( 10 ) UNSIGNED NOT NULL COMMENT '红包id',
	`uid` INT ( 10 ) UNSIGNED NOT NULL COMMENT '用户id',
	PRIMARY KEY ( `id` ),
KEY `red_id_uid` ( `red_id`, `uid` ) USING BTREE 
) ENGINE = INNODB DEFAULT CHARSET = utf8;

CREATE TABLE IF NOT EXISTS `ims_kuyuan_hb_staff` (
	`id` INT ( 10 ) UNSIGNED NOT NULL AUTO_INCREMENT,
	`uniacid` SMALLINT ( 5 ) UNSIGNED NOT NULL COMMENT '公众号id',
	`uid` INT ( 10 ) UNSIGNED NOT NULL,
	`boss` INT ( 10 ) UNSIGNED NOT NULL COMMENT '上级老板uid',
	`status` TINYINT ( 1 ) UNSIGNED NOT NULL DEFAULT '2' COMMENT '状态（1=正常，2=审核中，9=删除）',
	`time` INT ( 10 ) UNSIGNED NOT NULL COMMENT '操作时间修改',
PRIMARY KEY ( `id` ) 
) ENGINE = INNODB DEFAULT CHARSET = utf8;

CREATE TABLE IF NOT EXISTS `ims_kuyuan_hb_system` (
	`kuyuan_defend` TINYINT ( 1 ) UNSIGNED DEFAULT '0' COMMENT '是否开启酷源防封(0=不开启，1=开启)',
	`notice` text COMMENT '系统后台公告',
	`notice_show` TINYINT ( 1 ) UNSIGNED DEFAULT NULL COMMENT '是否显示公告',
`install_time` INT ( 10 ) UNSIGNED DEFAULT NULL COMMENT '模块安装时间' 
) ENGINE = INNODB DEFAULT CHARSET = utf8;

CREATE TABLE IF NOT EXISTS `ims_kuyuan_hb_form` (
    `id` INT ( 10 ) UNSIGNED NOT NULL AUTO_INCREMENT,
    `uniacid` SMALLINT ( 5 ) UNSIGNED NOT NULL,
    `uid` INT ( 10 ) UNSIGNED NOT NULL,
    `form_name` VARCHAR ( 10 ) NOT NULL COMMENT '表单名字',
    `form_data` text NOT NULL COMMENT '表单数据json字符串',
    `create_time` INT ( 10 ) UNSIGNED NOT NULL COMMENT '表单创建时间',
    `status` TINYINT ( 1 ) UNSIGNED NOT NULL DEFAULT '1' COMMENT '状态（1=正常，9=删除）',
    PRIMARY KEY ( `id` ) 
) ENGINE = INNODB DEFAULT CHARSET = utf8;

CREATE TABLE IF NOT EXISTS `ims_kuyuan_hb_red_form` (
        `id` INT ( 10 ) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '用户提交的红包表单数据',
        `uniacid` SMALLINT ( 5 ) UNSIGNED NOT NULL COMMENT '公众号id',
        `uid` INT ( 10 ) UNSIGNED NOT NULL COMMENT '用户id',
        `red_id` INT ( 10 ) UNSIGNED NOT NULL COMMENT '红包id',
        `form_content` text NOT NULL COMMENT '提交的表单内容',
        `create_time` INT ( 10 ) UNSIGNED NOT NULL COMMENT '提交时间',
        PRIMARY KEY ( `id` ) 
) ENGINE = INNODB DEFAULT CHARSET = utf8;

CREATE TABLE IF NOT EXISTS `ims_kuyuan_hb_setting_message` (
	`uniacid` SMALLINT ( 5 ) UNSIGNED NOT NULL,
	`await_check_tpl` VARCHAR ( 50 ) NOT NULL COMMENT '通用审核微信模板消息id',
	`result_check_tpl` VARCHAR ( 50 ) NOT NULL COMMENT '审核结果通知微信消息模板id',
	`result_check_sub` VARCHAR ( 50 ) NOT NULL COMMENT '审核结果通知微信订阅消息',
PRIMARY KEY ( `uniacid` ) 
) ENGINE = INNODB DEFAULT CHARSET = utf8;

CREATE TABLE IF NOT EXISTS `ims_kuyuan_hb_manage` (
	`id` INT ( 10 ) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '系统管理员',
	`uniacid` SMALLINT ( 5 ) UNSIGNED NOT NULL COMMENT '公众号id',
	`uid` INT ( 10 ) UNSIGNED NOT NULL COMMENT '用户id',
	`email` VARCHAR ( 50 ) NOT NULL COMMENT '邮箱',
	`status` TINYINT ( 1 ) UNSIGNED NOT NULL DEFAULT '1' COMMENT '状态（1=正常，0=取消）',
	`create_time` INT ( 10 ) UNSIGNED NOT NULL COMMENT '创建时间',
	`update_time` INT ( 10 ) UNSIGNED NOT NULL COMMENT '修改时间',
PRIMARY KEY ( `id` ) 
) ENGINE = INNODB DEFAULT CHARSET = utf8;
";
pdo_run($_install_sql);

pdo_insert("kuyuan_hb_system",array(
    "install_time"=>time()
));
